﻿using MongoDB.Attributes;
using System;

namespace Resn.WhuPub.DML
{
        /// <summary>
        /// 课本数据模型
        /// </summary>
        public class CourseBookModel:IIdentity
        {
                /// <summary>
                /// 获取或设置标识
                /// </summary>
                /// <value>
                /// 标识
                /// </value>
                [MongoId]
                public String Id { get; set; }

                /// <summary>
                /// 获取课程标识
                /// </summary>
                /// <value>
                /// 课程标识
                /// </value>
                public string CourseId { get; set; }

                /// <summary>
                /// 获取书籍标识
                /// </summary>
                /// <value>
                /// 书籍标识
                /// </value>
                public string BookId { get; set; }

                /// <summary>
                /// 获取或设置使用数量
                /// </summary>
                /// <value>
                /// 使用数量
                /// </value>
                public int UseAmount { get; set; }
        }
}